<?php
$header = array(
	'STT'=>'', 
	'Tên đăng nhập'=>'', 
	'Họ tên'=>'',
	'Email'=>''
	);
$config = array(
    'header_icon' => @$this->resource->RES_ICON,
    'header_title' => 'Quản lý '.@$this->resource->RES_NAME,
    'add_title' => 'Thêm '.@$this->resource->RES_NAME,
    'ID' => '0',
    'showEdit' => false,
    'showDelete' => false,
    'showAdd' => false,
);
if ($this->permission->check("delete", $this->resource->RES_CODE))
    $config['showDelete'] = true;

if ($this->permission->check("update", $this->resource->RES_CODE))
    $config['showEdit'] = true;
	
if ($this->permission->check("insert", $this->resource->RES_CODE))
    $config['showAdd'] = true;

$data = array();
$stt = 0;
foreach ($datas as $result) {

    $data[] = array($result->ADM_ID, ++$stt, $result->ADM_ACCOUNT, $result->ADM_NAME, $result->ADM_EMAIL);
}

echo $this->atheme->table_simple($header, $data, $config);
?>

